package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年7月17日 下午9:26:48 
 * 类说明 
 */
public class PsCWfPayCompPrimary implements Serializable {
	
	private static final long serialVersionUID = -7697835378392595963L;

	private String cPayCompany;

	private String cTransactionNbr;

	private String calRunId;

	public String getcPayCompany() {
		return cPayCompany;
	}

	public void setcPayCompany(String cPayCompany) {
		this.cPayCompany = cPayCompany;
	}

	public String getcTransactionNbr() {
		return cTransactionNbr;
	}

	public void setcTransactionNbr(String cTransactionNbr) {
		this.cTransactionNbr = cTransactionNbr;
	}

	public String getCalRunId() {
		return calRunId;
	}

	public void setCalRunId(String calRunId) {
		this.calRunId = calRunId;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cPayCompany == null) ? 0 : cPayCompany.hashCode());
		result = prime * result
				+ ((cTransactionNbr == null) ? 0 : cTransactionNbr.hashCode());
		result = prime * result
				+ ((calRunId == null) ? 0 : calRunId.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCWfPayCompPrimary other = (PsCWfPayCompPrimary) obj;
		if (cPayCompany == null) {
			if (other.cPayCompany != null)
				return false;
		} else if (!cPayCompany.equals(other.cPayCompany))
			return false;
		if (cTransactionNbr == null) {
			if (other.cTransactionNbr != null)
				return false;
		} else if (!cTransactionNbr.equals(other.cTransactionNbr))
			return false;
		if (calRunId == null) {
			if (other.calRunId != null)
				return false;
		} else if (!calRunId.equals(other.calRunId))
			return false;
		return true;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
 